package org.example.springmybatis.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.example.springmybatis.modle.UserInfo;

import java.util.List;

@Mapper
public interface UserInfoXML {   //查询
      List<UserInfo> selectAll();

      Integer insertUser(UserInfo userInfo);  //新增

      //更新
      Integer updateUser(Integer age,String name);

      //删除
      Integer deleteUser(Integer age);

      //动态SQL 更新语句
      Integer updateUser1(Integer age,String name);


      Integer updateUser2(UserInfo userInfo);//通过传递对象进行更新


      //foreach 标签  delect 删除
      Integer deleteUser2(List<Integer> ages);
}
